﻿using UnityEngine;

namespace ProjectDanmaku.UI
{
    public class PauseButton : MonoBehaviour
    {
        private bool _paused = false;
        
        public void OnClick()
        {
            if (_paused)
            {
                _paused = false;
                Time.timeScale = 1;
            }
            else
            {
                _paused = true;
                Time.timeScale = 0;
            }
        }
    }
}